var express = require('express');
var router = express.Router();
const model  = require("../db/models");
/* GET users listing. */
router.get('/', function(req, res, next) {
  res.send('respond with a resource');
});

router.get("/list",async(req,res,next)=>{
  var models  =await model.Test.findAll();
  res.json(models);
});

module.exports = router;
